package com.SinaMicrobloggingApi.Core.Request;

import org.apache.http.message.BasicNameValuePair;

import com.SinaMicrobloggingApi.Core.OauthConstants;
import com.SinaMicrobloggingApi.Core.Response.IResponse;

public class PublicTimeLineRequest extends RequestBase {

	public static final String PUBLIC_TIME_LINE = "PublicTimeLine";
	

	public PublicTimeLineRequest(IResponse response, int count) {
		super(response);
		this.count = count;
	}

	@Override
	protected String getRequestName() {
		// TODO Auto-generated method stub
		return PUBLIC_TIME_LINE;
	}

	protected String getRequestParamenters() {

		BasicNameValuePair oauth_token = new BasicNameValuePair(
				OauthConstants.OAUTH_TOKEN_KEY, getOauthToken());
		BasicNameValuePair request_count = new BasicNameValuePair(
				REQUEST_COUNT, String.valueOf(count));

		oauthParamenterModels.add(oauth_token);
		oauthParamenterModels.add(request_count);

		return super.getRequestParamenters();
	}
}
